package co.com.travelsoft.dao.imp.paqueteturistico;


import java.util.List;

import org.hibernate.Query;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import co.com.travelsoft.dao.interfaces.paqueteturistico.ItinerarioPaqueteInterface;
import co.com.travelsoft.entities.paqueteturistico.ItinerarioPaquete;
import co.com.travelsoft.util.exceptions.TsDAOException;


/**
 * Dao {@link ItinerarioPaquete}
 * @author Juan Carlos Cardona
 * @since  23/04/2014
 * @version 1.0
 */
public class ItinerarioPaqueteDAO extends HibernateDaoSupport implements ItinerarioPaqueteInterface {

	@SuppressWarnings("unchecked")
	@Override
	public List<ItinerarioPaquete> getItinerarioPaquetesList() throws TsDAOException {
	    String hql = "Select c from ItinerarioPaquete c";
	    Query query = getSession().createQuery(hql);
	    List<ItinerarioPaquete> listReturn = query.list();
	    return  listReturn;
	}
}
